package com.esoon.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * CSR_CALL_LOST
 * @author 
 */
@Data
public class CsrCallLost implements Serializable {
    /**
     * PK
     */
    private Integer clId;

    /**
     * 客户名称
     */
    private String clName;

    /**
     * 客户号码
     */
    private String clPhone;

    /**
     * 排队时间
     */
    private Date clCallinTime;

    /**
     * 呼损节点
     */
    private String clIvrNode;

    /**
     * 等待对象
     */
    private String clSkill;

    /**
     * 等待时长
     */
    private Integer clWaitingTime;

    /**
     * 回呼状态
     */
    private String clState;

    /**
     * 回呼人
     */
    private Integer clCallbackUser;

    /**
     * 回呼时间
     */
    private Date clCallbackTime;

    /**
     * 备注
     */
    private String clMark;

    /**
     * 创建人
     */
    private Integer createId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 部门编号
     */
    private Integer createDept;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateId;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 租户编号
     */
    private Integer tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CsrCallLost other = (CsrCallLost) that;
        return (this.getClId() == null ? other.getClId() == null : this.getClId().equals(other.getClId()))
            && (this.getClName() == null ? other.getClName() == null : this.getClName().equals(other.getClName()))
            && (this.getClPhone() == null ? other.getClPhone() == null : this.getClPhone().equals(other.getClPhone()))
            && (this.getClCallinTime() == null ? other.getClCallinTime() == null : this.getClCallinTime().equals(other.getClCallinTime()))
            && (this.getClIvrNode() == null ? other.getClIvrNode() == null : this.getClIvrNode().equals(other.getClIvrNode()))
            && (this.getClSkill() == null ? other.getClSkill() == null : this.getClSkill().equals(other.getClSkill()))
            && (this.getClWaitingTime() == null ? other.getClWaitingTime() == null : this.getClWaitingTime().equals(other.getClWaitingTime()))
            && (this.getClState() == null ? other.getClState() == null : this.getClState().equals(other.getClState()))
            && (this.getClCallbackUser() == null ? other.getClCallbackUser() == null : this.getClCallbackUser().equals(other.getClCallbackUser()))
            && (this.getClCallbackTime() == null ? other.getClCallbackTime() == null : this.getClCallbackTime().equals(other.getClCallbackTime()))
            && (this.getClMark() == null ? other.getClMark() == null : this.getClMark().equals(other.getClMark()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
            && (this.getCreateDept() == null ? other.getCreateDept() == null : this.getCreateDept().equals(other.getCreateDept()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClId() == null) ? 0 : getClId().hashCode());
        result = prime * result + ((getClName() == null) ? 0 : getClName().hashCode());
        result = prime * result + ((getClPhone() == null) ? 0 : getClPhone().hashCode());
        result = prime * result + ((getClCallinTime() == null) ? 0 : getClCallinTime().hashCode());
        result = prime * result + ((getClIvrNode() == null) ? 0 : getClIvrNode().hashCode());
        result = prime * result + ((getClSkill() == null) ? 0 : getClSkill().hashCode());
        result = prime * result + ((getClWaitingTime() == null) ? 0 : getClWaitingTime().hashCode());
        result = prime * result + ((getClState() == null) ? 0 : getClState().hashCode());
        result = prime * result + ((getClCallbackUser() == null) ? 0 : getClCallbackUser().hashCode());
        result = prime * result + ((getClCallbackTime() == null) ? 0 : getClCallbackTime().hashCode());
        result = prime * result + ((getClMark() == null) ? 0 : getClMark().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getCreateDept() == null) ? 0 : getCreateDept().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clId=").append(clId);
        sb.append(", clName=").append(clName);
        sb.append(", clPhone=").append(clPhone);
        sb.append(", clCallinTime=").append(clCallinTime);
        sb.append(", clIvrNode=").append(clIvrNode);
        sb.append(", clSkill=").append(clSkill);
        sb.append(", clWaitingTime=").append(clWaitingTime);
        sb.append(", clState=").append(clState);
        sb.append(", clCallbackUser=").append(clCallbackUser);
        sb.append(", clCallbackTime=").append(clCallbackTime);
        sb.append(", clMark=").append(clMark);
        sb.append(", createId=").append(createId);
        sb.append(", creater=").append(creater);
        sb.append(", createDept=").append(createDept);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}